package cn.tedu._05mvcboot03.pojo.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class UserLoginDTO {
//    @NotBlank(message = "")

    private String username;
//    @NotBlank(message = "")
    @Pattern(regexp = "^.{10,500}$",message ="内容不能为空白，长度必须为10-500" )
    public String password;
}
